include ../makefile_common

.PHONY:clean all

OBJS = TCPServer.o TCPClientThread.o TCPClientServer.o TCPTaskPool.o SocketConnection.o BaseServer.o ServerSocket.o Buffer.o MsgBuffer.o TCPTask.o Thread.o MemoryPool.o Log.o

all:$(ZTLIB)
	@echo $(CURDIR)/$^ is generated successful!

$(ZTLIB):$(OBJS:.cc=.o)
	@echo Building... $@
	@ar cr $@ $(OBJS:.cc=.o)
	@ranlib $@
$(OBJS):%.o:%.cc
	@echo Compiling... $@
	$(CPP) $(CXXFLAGS) -c  $<
clean:
	@echo clear... $(OBJS) $(ZTLIB)
	-rm -f $(OBJS) $(ZTLIB)
